﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1.Services
{
    public class PrintService
    {



        private NlogService nlogHelper;

        private string title = "title";

        public PrintService(NlogService nlogHelper)
        {
            this.nlogHelper = nlogHelper;
        }


        public void SetTitle(string Title)
        {
            title = $"[{Title}]:";
        }

        public void Debug(string msg)
        {

            nlogHelper.Debug(title + msg);
        }

        public void Error(string msg)
        {
            nlogHelper.Error(title + msg);
        }

        public void Warning(string msg)
        {
            nlogHelper.Warning(title + msg);
        }

        public void Info(string msg)
        {
            nlogHelper.Info(title + msg);
        }

    }
}
